import {ref} from 'vue'
export default function(){
    let num = ref(1)
    let fav = ref(false)
    //正则 日期 数组 json ....
    let favbtn = ()=>{
        num.value +=1
        fav.value = true
        setTimeout(()=>{
            fav.value = false
        },2000)
    }
    return {
        num,
        fav,
        favbtn
    }
}